<style>
    /*body{*/
        /*background-color: #f9f9f9;*/
    /*}*/
</style>
<table class="table" style="width: 100%;">
    <tr class="info" style="width: 35px;">
        <th style="width: 85%">模板内容</th>
        <th style="width: 15%">操作</th>
    </tr>
    {% if info is defined %}
        {% for index,row in info %}
            <tr>
                <td>
                    <input class="form-control content" value="{{ row['content'] }}" />
                    <input type="hidden" class="nodeId" value="{{ row['id'] }}">
                </td>
                <td>
                    <a class="btn btn-default" onclick="editTemplate(this)" >编辑</a>
                    <a class="btn btn-default" onclick="delTemplate(this)" >删除</a>
                </td>
            </tr>
        {% endfor %}
    {% endif %}
    {% if info is defined and info | length < 5 %}
        <tr>
            <td><input class="form-control content" type="text" /></td>
            <td><a class="btn btn-success"  onclick="addTemplate(this)">新增模板</a></td>
        </tr>
    {% endif %}
</table>